﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MakeWenjuan.aspx.cs" Inherits="CSM.Views.Wenjuan.MakeWenjuan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
<script type="text/javascript" src="../../Js/jquery-1.3.2.min.js"></script>
<script src="../../Js/jquery.autocomplete.min.js" type="text/javascript"></script> 
<link href="../../App_Themes/Default_1/jquery.autocomplete.css" type="text/css" rel="stylesheet"/> 
<script type="text/javascript" src="../../Js/thickbox.js"></script>
<link rel="stylesheet" href="../../App_Themes/Default_1/thickbox.css" type="text/css" media="screen" />
    <script language="javascript" type="text/javascript">
    function ShowThickBox(url,id,title) {
        var dir=url;
        var uid=id;
        imgLoader = new Image(); // preload image
        imgLoader.src = tb_pathToImage;
        window.tb_show(title, dir+"?userid=" + uid + "&height=400&width=450", "");
    };
    function ShowThickBox_div(b, a) {
        var div = a;
        var title = b;
        imgLoader = new Image(); // preload image
        imgLoader.src = tb_pathToImage;
        window.tb_show(title, "#TB_inline?height=300&width=400&inlineId=" + div, "");
    };
    </script>
</head>
<body class = "CommonPage_Body">
    <form id="form1" runat="server">
        <table >

            <tr>
                <td colspan="3" >
                <asp:Button ID="Button_Add" runat="server" OnCommand="Button_Add_Command" Text="增加" skinid="Button"/>
                </td>
                <td >
                    
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel ID="Panel_Gridlist" runat="server">
                       <asp:Label ID="Label1" runat="server" SkinID="Label" Text="问卷名称："></asp:Label>    <asp:TextBox ID="txtUser" runat="server" ></asp:TextBox>
                        <asp:Button ID="Button_Browse" runat="server" Text="查询" skinid="Button" 
                            onclick="Button_Browse_Click"/>
                            
                        <br>
                        <asp:Label ID="Label_Default" runat="server" Text="" SkinID="Label"></asp:Label>
                        <br>
                        <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" 
                            OnClick="MyClick" ><img src = "../../App_Themes/Default_1/Images/Page_First.gif" class = "Page_First"alt = "首页" /></asp:LinkButton>                
                        <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" 
                            OnClick="MyClick"><img  src = "../../App_Themes/Default_1/Images/Page_Prev.gif" class = "Page_Prev"  alt = "上页"/></asp:LinkButton>               
                        <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" 
                            OnClick="MyClick"><img  src = "../../App_Themes/Default_1/Images/Page_Next.gif"  class = "Page_Next"  alt = "下页"/></asp:LinkButton>                      
                        <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" 
                            OnClick="MyClick"><img   src = "../../App_Themes/Default_1/Images/Page_Last.gif" class = "Page_Last" alt = "末页"/></asp:LinkButton>
                        <asp:Label ID="Label_Total" runat="server" SkinID="Label" Text="共："></asp:Label>
                        <asp:Label ID="Label_CurrenPageAndTo" runat="server" SkinID="Label" 
                            Text="页，当前第 页，转到"></asp:Label>
                        <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px"></asp:TextBox>
                        <asp:Label ID="Label4" runat="server" SkinID="Label" Text="页"></asp:Label>
                        <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" 
                            ControlToValidate="TextBox_PageIndex" ErrorMessage="*" MaximumValue="10000" 
                            MinimumValue="1" Type="Integer"></asp:RangeValidator>
                        <asp:Button ID="Button_PageGo" runat="server" CommandArgument="GotoPage" 
                            OnClick="MyClick" skinid="Button" Text="GO" />
                        <asp:GridView ID="GridView_Ques" runat="server" AutoGenerateColumns="False" 
                            SkinID="gridview">
                            <Columns>
                                <asp:BoundField DataField="StatID" HeaderText="问卷ID" ReadOnly="True" 
                                    SortExpression="问卷ID" />
                                <asp:BoundField DataField="StatName" HeaderText="问卷名称" ReadOnly="True" 
                                    SortExpression="问卷名称" />
                                <asp:BoundField DataField="UserID" HeaderText="创建人" ReadOnly="True" 
                                    SortExpression="创建人" />
                                <asp:BoundField DataField="CreateTime" HeaderText="创建时间" ReadOnly="True" 
                                    SortExpression="创建时间" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                    <asp:Button ID="Button_Edit" runat="server"  oncommand="Button_Edit_Command"
                                        CommandArgument='<%# Eval("StatID") %>'    skinid="Button" Text="编辑"/>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                    <asp:Button ID="Button_Delete" runat="server"  oncommand="Button_Delete_Command"
                                        CommandArgument='<%# Eval("StatID") %>'    skinid="Button" Text="删除"/>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                    <asp:Button ID="Button_Default" runat="server"  oncommand="Button_Default_Command"
                                        CommandArgument='<%# Eval("StatID") %>'    skinid="Button" Text="设为默认"/>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                       <asp:DropDownList ID="DropDownList_Level" runat="server" AutoPostBack="True" SelectedValue='<%# Eval("ItemID") %>' onselectedindexchanged="DropDownList_SelectedIndexChanged" Enabled="false">
                                    <asp:ListItem Value="0">未绑定</asp:ListItem>
                                    <asp:ListItem Value="dzyhwj">定制客户问卷</asp:ListItem>
                                    <asp:ListItem Value="xyhwj">新用户问卷</asp:ListItem>
                                    <asp:ListItem Value="whwj">挽回问卷</asp:ListItem>
                                    </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>

                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="EditFlag" runat="server" Value="0" />
                </td>
                <td>
                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                    <asp:HiddenField ID="DefaultID" runat="server" Value="" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
          <div id = "MyThickBox"></div>
          
    </form>
</body>
</html>
<% =alert %>
